﻿using Microsoft.Phone.Shell;
namespace HowHigh.Code
{
    public class TopMessage
    {
        public static void Show(string message)
        {
            App.Current.CurrentProgressIndicator.Dispatcher.BeginInvoke(delegate()
            {
                App.Current.CurrentProgressIndicator.Text = message;
                App.Current.CurrentProgressIndicator.IsVisible = true;
            });
        }
        public static void Hide()
        {
            App.Current.CurrentProgressIndicator.Dispatcher.BeginInvoke(delegate()
            {
                App.Current.CurrentProgressIndicator.IsVisible = false;
            });
        }
    }
}
